//
//  WLBaseViewController.h
//  录音转文字助手
//
//  Created by 录音转文字助手 on 2020/8/11.
//  Copyright © 2020 录音转文字助手. All rights reserved.
//

#import <UIKit/UIKit.h>


//导航栏高度
#define WL_NavigateHight           [[UIApplication sharedApplication] statusBarFrame].size.height + self.navigationController.navigationBar.frame.size.height


NS_ASSUME_NONNULL_BEGIN

@protocol  WLLBaseViewControllerDataSource<NSObject>
@optional
-(NSMutableAttributedString*)setAttrTitle;
-(NSString*)setTitle;
-(NSString*)setTitleBlack;

-(UIView*)setTitleView;

-(UIButton*)set_leftButton;
-(NSArray*)set_leftButtonArr;

-(UIButton*)set_rightButton;
-(NSArray*)set_rightButtonArr;

-(UIImage*)set_leftBarButtonItemWithImage;
-(UIImage*)set_rightBarButtonItemWithImage;
@end


@protocol WLLBaseViewControllerDelegate <NSObject>

@optional
-(void)left_button_event:(UIButton *)sender;
-(void)right_button_event:(UIButton *)sender;
-(void)title_click_event:(UIView *)sender;
@end

@interface WLBaseViewController : UIViewController<WLLBaseViewControllerDataSource , WLLBaseViewControllerDelegate>

-(void)set_Title:(NSString *)title;
-(void)set_AttrTitle:(NSMutableAttributedString *)title;
-(void)set_TitleView:(UIView *)titleView;

@property(nonatomic,strong) UIView *nav_background_view;
@property(nonatomic,strong) UIView *nav_background_line_view;

-(void)nav_background_color:(UIColor *)color;

@end

NS_ASSUME_NONNULL_END
